<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<script type="text/javascript" src="<%=basePath%>js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/vue.min.js"></script>
<link rel="stylesheet" href="<%=basePath%>css/layui/css/layui.css">
<script type="text/javascript" src="<%=basePath%>js/BaseUtile.js"></script>
<script type="text/javascript"
	src="<%=basePath%>js/systemManage/editUser.js"></script>

<title>编辑用户</title>

<script type="text/javascript">
	var userId = '${user.userId}';
	var roleIdText='${user.roleId}';
</script>
</head>
<body style="margin: 5%">
	

	<div class="layui-form">

		<form id="userForm" action="">
			<input name="userId" value="${user.userId}" style="display: none" />

			<div class="layui-form-item">
				<label class="layui-form-label">用户名:</label>
				<div class="layui-input-block">
					<input name="username" value="${user.username}" type="text"
						placeholder="请输入用户名" class="layui-input">
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">昵称:</label>
				<div class="layui-input-block">
					<input name="nickname" value="${user.nickname}" type="text"
						placeholder="请输入昵称" class="layui-input">
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">密码:</label>
				<div class="layui-input-block">
					<input name="password" type="text" placeholder="请输入密码" value="${user.password}"
						class="layui-input">
				</div>
			</div>

			<div class="layui-form-item">
				<label class="layui-form-label">电话号码:</label>
				<div class="layui-input-block">
					<input name="phoneNumber" value="${user.phoneNumber}" type="text" placeholder="请输入号码"
						class="layui-input">
				</div>
			</div>

			<div id="roleDiv">
				<label class="layui-form-label">角色:</label>
				<div class="layui-input-block">
					<select   name="roleId" v-model="selected">
						<option v-for="option in options" v-bind:value="option.roleId">{{option.roleName}}</option>
					</select>
				</div>
			</div>
			<div style="margin-top: 2%">
				<label class="layui-form-label">备注:</label>
				<div class="layui-input-block">
					<textarea name="remark" placeholder="请输入备注"
						class="layui-textarea">${user.remark}</textarea>
				</div>
			</div>

		</form>

	</div>

	<script type="text/javascript" src="<%=basePath%>css/layui/layui.js"></script>
	<script>
		layui.use('form', function() {

		});
	</script>

</body>
</html>